﻿@namespace iMemberUI

<button @onclick="OnClick" class="apple-button @(string.IsNullOrEmpty(ButtonType) ? "" : $"apple-{ButtonType}-button")">
    @ChildContent
</button>

@code {
    [Parameter, EditorRequired] public RenderFragment? ChildContent { get; set; }
    [Parameter] public string? ButtonType { get; set; }
    [Parameter] public string? HtmlType { get; set; }
    [Parameter] public string? Class { get; set; }
    [Parameter] public string? Style { get; set; }
    [Parameter] public EventCallback<MouseEventArgs> OnClick { get; set; }
}